Merge stuff from upsteam ruby-mode, part 1.
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 10 Aug 2012 20:19:09 +0000 (16:19 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 10 Aug 2012 20:19:09 +0000 (16:19 -0400)
commit08340859bf7ce855fc5c03684476fd623785e2d9
tree419957611245ffe2914cdf2bf3c54be0a929d397
parentd8705eabbf3c3bcb7a6a521ae6a6698c8082f394
Merge stuff from upsteam ruby-mode, part 1.
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove deprecated
binding (use `M-;' instead).
(ruby-expr-beg, ruby-parse-partial): ?, _, and : are symbol
constituents, ! is not (but kinda should be).
(ruby-singleton-class-p): New function.
(ruby-expr-beg, ruby-in-here-doc-p)
(ruby-syntax-propertize-heredoc): Use it.
(ruby-syntax-propertize-function): Adjust for changes in
`ruby-syntax-propertize-heredoc'.

* test/automated/ruby-mode-tests.el (ruby-should-indent)
(ruby-assert-state): New functions.
Add new tests.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el